Ext.define('Zm.view.model.View', {
    alias: 'widget.modelview',
    extend: 'Ext.panel.Panel',
    requires:[
        'Zm.view.model.Catalog',
        'Zm.view.model.List',
        'Zm.i18n.Lang'
    ],
    
    initComponent: function(){
        var me = this,
            lang = Zm.i18n.Lang;
        Ext.apply(me,{
            title:lang.tModelList,
            iconCls:'modelview',
            layout: 'border',
            items:[{
                xtype:'modelcatalog',
                region:'west',
                width:200,
                split:true,
                stateId:'modcatalog',
                stateful:true,
                autoScroll:true
            },{
                xtype:'modellist',
                stateful:true,
                stateId:'modlist',
                region:'center'
            }]
        });
        me.callParent(arguments); 
    }
});
